import Vue from "vue";
import customDialog from "./index.vue";

const selectEnterpeise = function (callback, closeable = true, list = [],id = '') {
  const dialog = Vue.extend(customDialog);
  const instance = new dialog({}).$mount();
  document.body.appendChild(instance.$el);
  instance.closeable = closeable;
  instance.list = list
  instance.id = id
  instance.callback = callback || function () {};
  instance.visible = true;
};

export default selectEnterpeise;
